
package UserInterface;

import ResultEditor.Annotations.ComplexRelationship;

/**
 * New Class to bulid one kind of entry to show icon and text informations on
 * list of output annotations into xml files.
 *
 * @author Jianwei Leng  2010-06-29
 */
public class iListEntry {
  private ComplexRelationship rel;
  private boolean selected;

  public iListEntry(ComplexRelationship relation) {
      rel = relation;

  }
  public String getTitle() {
      return getRel().toString();
  }

    /**
     * @return the selected
     */
    public boolean isSelected()
    {
        return selected;
    }

    /**
     * @param selected the selected to set
     */
    public void setSelected(boolean selected)
    {
        this.selected = selected;
    }

    /**
     * @return the rel
     */
    public ComplexRelationship getRel()
    {
        return rel;
    }

    /**
     * @param rel the rel to set
     */
    public void setRel(ComplexRelationship rel)
    {
        this.rel = rel;
    }


  
}